import request from '@/utils/request'
import {getToken} from '@/utils/auth'
var token = getToken()
//列表
// export function getDeviceList(data,pageData) {
//     return request({
//       url: '/device/page/'+pageData.pageNo+'/'+pageData.pageSize,
//       method: 'post',
//       headers:{'Content-Type':'application/json'},
//       data
//     })
//   }

export function getSpanList(data,pageData) {
    return request({
      url: '/lifeSpan/page/'+pageData.pageNo+'/'+pageData.pageSize,
      method: 'post',
      headers:{'Content-Type':'application/json'},
      data
    })
  }
  export function getSpanType() {
    return request({
      url: '/lifeSpan/getAllType',
      method: 'get',
      headers:{'Content-Type':'application/json'}
    })
  }
  export function getlifeSpanRecord(data) {
    return request({
      url: '/lifeSpanRecord/list?spanNo='+data,
      method: 'get',
      headers:{'Content-Type':'application/json'},
    })
  }
  


//   export function getSpanList(data,pageData) {
//     return request({
//       url: '/lifeSpan/query/list',
//       method: 'post',
//       headers:{'Content-Type':'application/json'},
//       data
//     })
//   }